block nested-loop